<template>
	<view class="my">
		
		<view class="pt-5">
			<u-button  text="退出登陆" @click="logoutAndLogin"></u-button>
		</view>
			
	</view>
</template>

<script>
	import {
		to,remove
	} from "@/static/js/uilt/index.js";
	export default{
		data(){
			return {}
		},
		methods:{
			logoutAndLogin(){
				remove('userInfo')
				to('/pages/index/index')
			}
		}
	}
	</script>

<style lang="scss" >
	.my{
		
	}

</style>